Im Moment habe ich Folgendes:
Code: Select all
parser.add_argument('--rename', type=str, nargs=2, help='some help')
Code: Select all
optional arguments:
-h, --help            show this help message and exit
--rename RENAME RENAME
some help
Code: Select all
--rename OLDFILE NEWFILE
Code: Select all
args.rename.oldfile
args.rename.newfile
 Mobile version
 Mobile version