Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add --config to use customize configuration file #539

Open
Freed-Wu opened this issue Jul 30, 2022 · 2 comments
Open

Add --config to use customize configuration file #539

Freed-Wu opened this issue Jul 30, 2022 · 2 comments

Comments

@Freed-Wu
Copy link
Contributor

Is your feature request related to a problem? Please describe.
No

Describe the solution you'd like

$ pudb3 --help
usage: pudb3 [options] [-m] SCRIPT-OR-MODULE-TO-RUN [SCRIPT_ARGS]

positional arguments:
  script_args           Arguments to pass to script or module

optional arguments:
  -h, --help            show this help message and exit
  -s, --steal-output
  -m, --module          Debug as module or package instead of as a script
  -le FILE, --log-errors FILE
                        Log internal errors to the given file
  --pre-run COMMAND     Run command before each program run
  --config CONFIG       Use config file [Default: ~/.config/pudb/pudb.cfg]
  --version             show program's version number and exit

pudb:pudb3 v2022.1.2
@inducer
Copy link
Owner

inducer commented Jul 30, 2022

I'd be happy to consider a PR. One question is whether this should switch the whole config directory, which also stores histories, breakpoints and such.

@Freed-Wu
Copy link
Contributor Author

Freed-Wu commented Aug 4, 2022

One question is whether this should switch the whole config directory, which also stores histories, breakpoints and such.

Switch the whold config directory and only switch config file, which is better? And, can we add a default config file in current directory, i.e., pudb.cfg in current directory can have higher priority than ~/.config/pudb/pudb.conf? It can keep different config from default ~/.config/pudb/pudb.conf for different path.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants