diff --git a/src/commands/drive.ts b/src/commands/drive.ts index 2dc8f61..062de1b 100644 --- a/src/commands/drive.ts +++ b/src/commands/drive.ts @@ -30,7 +30,9 @@ interface DriveExportOptions { export function registerDriveCommands(program: Command): void { const drive = program .command('drive') - .description('Manage Google Drive files (read-only)'); + .description('Manage Google Drive files (read-only)') + .enablePositionalOptions() + .passThroughOptions(); // drive list drive diff --git a/src/index.ts b/src/index.ts index dd4374c..4f8f123 100644 --- a/src/index.ts +++ b/src/index.ts @@ -12,6 +12,7 @@ program .name('gwcli') .description('Google Workspace CLI - Manage Gmail, Calendar, and Drive with multi-profile support') .version('0.1.0') + .enablePositionalOptions() .option('-p, --profile ', 'Use a specific profile (overrides GWCLI_PROFILE and default)') .option('-f, --format ', 'Output format: json, table, text', 'table');