mirror of
https://github.com/kirill-markin/repo-to-text.git
synced 2025-12-05 19:12:24 -08:00
Add aliases for repo-to-text and --create-settings
Fixes #11 Add aliases for `repo-to-text` and `--create-settings`. * **setup.py** - Add alias `flatten` for `repo-to-text` in `entry_points`. * **repo_to_text/main.py** - Add alias `--init` for `--create-settings` in `argparse` setup. * **README.md** - Update usage documentation to include alias `flatten` for `repo-to-text`. - Update usage documentation to include alias `--init` for `--create-settings`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/kirill-markin/repo-to-text/issues/11?shareId=XXXX-XXXX-XXXX-XXXX).
This commit is contained in:
parent
ad36a75a7a
commit
3e236d7508
3 changed files with 15 additions and 2 deletions
|
|
@ -256,7 +256,7 @@ def main():
|
|||
parser = argparse.ArgumentParser(description='Convert repository structure and contents to text')
|
||||
parser.add_argument('--debug', action='store_true', help='Enable debug logging')
|
||||
parser.add_argument('--output-dir', type=str, help='Directory to save the output file')
|
||||
parser.add_argument('--create-settings', action='store_true', help='Create default .repo-to-text-settings.yaml file') # Новый аргумент
|
||||
parser.add_argument('--create-settings', '--init', action='store_true', help='Create default .repo-to-text-settings.yaml file')
|
||||
args = parser.parse_args()
|
||||
|
||||
setup_logging(debug=args.debug)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue