diff options
Diffstat (limited to 'src/base/cba/cbaCom.c')
-rw-r--r-- | src/base/cba/cbaCom.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/base/cba/cbaCom.c b/src/base/cba/cbaCom.c index ca86766e..b01f0d4e 100644 --- a/src/base/cba/cbaCom.c +++ b/src/base/cba/cbaCom.c @@ -213,7 +213,10 @@ int Cba_CommandWrite( Abc_Frame_t * pAbc, int argc, char ** argv ) if ( argc == globalUtilOptind + 1 ) pFileName = argv[globalUtilOptind]; else if ( argc == globalUtilOptind && p ) - pFileName = Extra_FileNameGenericAppend( Cba_ManName(p), "_out.v" ); + { + pFileName = Extra_FileNameGenericAppend( Cba_ManSpec(p) ? Cba_ManSpec(p) : Cba_ManName(p), "_out.v" ); + printf( "Generated output file name \"%s\".\n", pFileName ); + } else { printf( "Output file name should be given on the command line.\n" ); |